FROM node:16-alpine

RUN apk add --no-cache make gcc g++ python3 git

RUN mkdir /app
COPY ./project /app

WORKDIR /app

RUN npm ci

RUN npm run build && \
    npm run build-client

CMD node ./build/index.js
